//
//  JGRightMenuCenterViewRow.m
//  Netease_Project
//
//  Created by JJetGu on 15-6-19.
//  Copyright (c) 2015年 JJetGu. All rights reserved.
//

#import "JGRightMenuCenterViewRow.h"

@interface JGRightMenuCenterViewRow ()
@property (weak, nonatomic) IBOutlet UIButton *titleButton;
@property (weak, nonatomic) IBOutlet UIImageView *iconView;

@end

@implementation JGRightMenuCenterViewRow

+(instancetype)centerViewRow
{
    return [[[NSBundle mainBundle] loadNibNamed:@"JGRightMenuCenterViewRow" owner:nil options:nil] lastObject];
}

- (void)setIcon:(NSString *)icon
{
    _icon = [icon copy];
    
    self.iconView.image = [UIImage imageNamed:icon];
}

- (void)setTitle:(NSString *)title
{
    _title = [title copy];
    
    [self.titleButton setTitle:title forState:UIControlStateNormal];
}

@end
